package xcu.lxj.nettychat.chat.domain.vo.request;



import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;


@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Schema(name = "消息类型携带的 文字请求体")
public class TextMsgReq {

    @NotBlank(message = "内容不能为空")
    @Size(max = 1024, message = "消息内容过长，")
    @Schema(description = "消息内容",requiredMode = Schema.RequiredMode.REQUIRED)
    private String content;


    @Schema(description = "回复的消息id,如果没有别传就好",requiredMode = Schema.RequiredMode.NOT_REQUIRED)
    private Long replyMsgId;

    @Schema(description = "艾特的uid",requiredMode = Schema.RequiredMode.NOT_REQUIRED)
    @Size(max = 10, message = "一次别艾特这么多人")
    private List<Long> atUidList;
}
